The Flash Objects API > Flash objects overview > SWFFile.getNaturalSize()

 

SWFFile.getNaturalSize()

Description

Returns the natural size of any Flash movie.

Arguments

fileName

fileName is a path to the Flash movie, expressed as a file://URL.

Returns

An array containing two elements, representing the width and the height of the movie, or null if the file is not a Flash file.